//
//  MMScrollPreviewView.h
//  MemeMaker
//
//  Created by Phan Quang Ha on 7/18/13.
//  Copyright (c) 2013 soyo. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MMScrollPreviewDelegate <NSObject>

- (void) didChangeOrigin:(CGFloat)y withRate:(CGFloat)rate;
- (void) changedWithHeight:(CGFloat) h;
- (void) didChangedParentHeight:(CGFloat) h withRate:(CGFloat) rate;

- (void) needSaveCurrentImage;
- (void) cancelDrawingImage;

@end

@interface MMScrollPreviewView : UIView

@property (nonatomic, strong) UIImage *currentImage;
@property (nonatomic, assign) id <MMScrollPreviewDelegate> delegate;
@property (nonatomic, strong) UIButton *btnPlus;
@property (nonatomic, strong) UIButton *btnMinus;
//@property (nonatomic, strong) UIButton *btnSave;
//@property (nonatomic, strong) UIButton *btnBack;

- (id) initWithBigRect:(CGRect)rect1 smallRect:(CGRect)rect2 andImage:(UIImage *)img;
- (void) setBigRect:(CGRect)rect andImage:(UIImage *)img;
@end
